package com.czxy.demo04;

/**
 * Created by hp on 2020/1/31.
 */
public class Car {
    public String brand;//品牌
    public String color;//颜色
    public double price;//价格

    @Override
    public String toString() {
        return "Car{" +
                "brand='" + brand + '\'' +
                ", color='" + color + '\'' +
                ", price=" + price +
                '}';
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Car() {

    }

    public Car(String brand, String color, double price) {

        this.brand = brand;
        this.color = color;
        this.price = price;
    }

    void driver() {

    }
}
